package com.cms.biz.queryAnalyse.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.framework.sys.business.AbstractBusinessObjectServiceMgr;
import com.cms.biz.queryAnalyse.CMSQueryAnalyseServiceMgr;
import com.cms.biz.queryAnalyse.query.EMPCCNRLCCCTZDQuery;
import com.cms.biz.queryAnalyse.query.EMPCCNRQuery;
import com.cms.biz.queryAnalyse.query.EMPFormQuery;
import com.cms.biz.queryAnalyse.query.EMPPSHTBMStatusQuery;
import com.cms.biz.queryAnalyse.query.EMPPaidContractInfoQuery;
import com.cms.biz.queryAnalyse.query.EMPSCSQCPFormQuery;
import com.cms.biz.queryAnalyse.query.EMPSCTZBMWQRQuery;
import com.cms.biz.queryAnalyse.query.EMPSCTZSYSLQuery;
import com.cms.biz.queryAnalyse.query.EMPTZDFormQuery;
import com.cms.biz.queryAnalyse.query.EMPUnpaidContractInfoQuery;
import com.efounder.eai.data.JParamObject;
import com.efounder.eai.data.JResponseObject;

@Transactional(rollbackFor = Exception.class)
@Service("cmsQueryAnalyseServiceMgr")
public class CMSQueryAnalyseServiceMgrImpl extends AbstractBusinessObjectServiceMgr implements CMSQueryAnalyseServiceMgr {

	@Autowired
	private                 EMPSCTZSYSLQuery            SCTZSYSLQuery;
	
	@Autowired
	private       EMPUnpaidContractInfoQuery       unpaidContractInfo;
	
	@Autowired
	private        EMPPaidContractInfoQuery          paidContractInfo;
	
	@Autowired
	private                 EMPTZDFormQuery              TZDFormQuery;
	
	@Autowired
	private                    EMPCCNRQuery                 CCNRQuery;
	
	@Autowired
	private             EMPCCNRLCCCTZDQuery          CCNRLCCCTZDQuery;
	
	@Autowired
	private               EMPSCTZBMWQRQuery            SCTZBMWQRQuery;
	
	@Autowired
	private            EMPPSHTBMStatusQuery         PSHTBMStatusQuery;
	
	@Autowired
	private              EMPSCSQCPFormQuery           SCSQCPFormQuery;
	
	@Autowired
	private                    EMPFormQuery                 formQuery;
	
	//--------------------------------------------------------------------------------------------------
	// 描述:库存查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject searchSCTZSYSL(JParamObject PO) {
		return SCTZSYSLQuery.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:未付款合同查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject searchUnpaidContractInfo(JParamObject PO) {
		PO.SetValueByParamName("FKZT", "0");
		return unpaidContractInfo.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:已付款查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject searchPaidContractInfo(JParamObject PO) {
		PO.SetValueByParamName("FKZT", "1");
		return paidContractInfo.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:查询表单
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject searchFormList(JParamObject PO) {		
		return formQuery.QueryObject(PO);
	}

	public JResponseObject searchSCSQ(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}

	public JResponseObject searchSCTZ(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}

	public JResponseObject searchCCTZ(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}

	public JResponseObject searchCCNR(JParamObject PO) {
		return CCNRQuery.QueryObject(PO);
	}

	public JResponseObject searchCCNRLCCTZD(JParamObject PO) {
		return CCNRLCCCTZDQuery.QueryObject(PO);
	}

	public JResponseObject searchPSHTBMStatus(JParamObject PO) {
		return PSHTBMStatusQuery.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:生产通知部门未确认
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject searchSCTZBMWQR(JParamObject PO) {
		return SCTZBMWQRQuery.QueryObject(PO);
	}

	public JResponseObject searchWXSQ(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}
	
	public JResponseObject searchSHFW(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}

	public JResponseObject searchWXTZ(JParamObject PO) {
		return TZDFormQuery.QueryObject(PO);
	}

	public JResponseObject searchWXTZBMWQR(JParamObject PO) {
		return PSHTBMStatusQuery.QueryObject(PO);
	}

	public JResponseObject searchSCSQCP(JParamObject PO) {
		return SCSQCPFormQuery.QueryObject(PO);
	}
}
